//
//  SearchView.m
//  LocalGoods2
//
//  Created by Feihong Ye on 2018/10/25.
//  Copyright © 2018年 Xiaodong Huang. All rights reserved.
//

#import "SearchView.h"
#import "Header.h"

@implementation SearchView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpUI];
    }
    
    return self;
}

- (void)setUpUI {
    //self.backgroundColor = [UIColor purpleColor];
    self.searchBar = [[UISearchBar alloc] initWithFrame:self.bounds];
    _searchBar.tintColor = [UIColor orangeColor];
    _searchBar.placeholder = @"搜索";
    _searchBar.backgroundImage = [UIImage new];
    //UITextField *searchTextField = [_searchBar valueForKey:@"_searchField"];
    [self addSubview:_searchBar];
    
}

@end
